import functools

def user_data_info(viewfunc):

    @functools.wraps(viewfunc)
    def warpper(*args, **kwargs):
        pass
    return warpper

@user_data_info
def index():
    pass
@user_data_info
def news():
    pass

if __name__ == '__main__':
    print(index.__name__)
    print(news.__name__)